package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.query.ObjectQuery;

import java.util.List;

public interface DepartmentMapper {
    void save(Department department);

    void delete(Long id);

    void update(Department department);

    Department get(Long id);

    List<Department> getAll();

    int queryForCount(ObjectQuery qo);

    List<Department> queryForList(ObjectQuery qo);

    void changeState(Long id);


}
